home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AOL File Library: 2,801 to 2,900
/
aol-file-protocol-4400-2801-to-2900.zip
/
AOLDLs
/
C++ Files Library
/
Direct Blitting in C++
/
Blitting.sit
/
Blitting ƒ
/
StMMUModeSwapper.h
< prev
next >
Wrap
Text File
|
1995-04-22
|
554b
|
31 lines
// StMMUModeSwapper.h, a stack based MMU Mode swapper
//
// Copyright ⌐ 1995, Macneil Shonle. All rights reserved.
#ifndef __STMMUMODESWAPPER__
#define __STMMUMODESWAPPER__
class StMMUModeSwapper {
public:
StMMUModeSwapper( int goTo32 );
~StMMUModeSwapper();
private:
int mGoInto32;
SInt8 mMode;
};
inline StMMUModeSwapper::StMMUModeSwapper( int goTo32 ) : mGoInto32(goTo32)
{ if( mGoInto32 )
{ mMode = true32b;
SwapMMUMode( &mMode );
}
}
inline StMMUModeSwapper::~StMMUModeSwapper()
{ if( mGoInto32 )
{ SwapMMUMode( &mMode );
}
}
#endif